/**
* Program   :   IFreeMarkerTool.java
* Author    :   shadow guo
* Create    :   2010-4-16 上午10:11:07
*
* Copyright 2008 by Tongfu Information Technology Co. Ltd
* All rights reserved.
*
* This software is the confidential and proprietary information
* of Tongfu Information Technology Co. Ltd. ("Confidential Information").  You
* shall not disclose such Confidential Information and shall use
* it only in accordance with the terms of the license agreement
* you entered into with Tongfu Information Technology Co. Ltd.
* 
*/

/**
 * 
 */
package com.tongfusoft.utils.template;

import java.util.Map;


/**
 * @author Tongfu
 *
 */
public interface IFreeMarkerTool {
	/**
	 * 根据模板生成需要的字符串
	 * @param stylesheet
	 * @param root
	 * @return
	 * @throws Exception
	 */
	public String transform(String stylesheet, Map<String, Object> data);
	
	/**
	 * 
	 * @param stylesheet
	 * @param data
	 * @return
	 * @throws Exception
	 */
	public boolean saveTofile(String stylesheet, Map<String, Object> data, String fileName);
}
